From 71fbeb088826b530ef00eddb429df162e8e493b2 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 1 Nov 2011 19:03:38 +0000 Subject: [PATCH] tools/ocaml: unify build process Unify ocaml build process for different platforms. Signed-off-by: Christoph Egger Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/ocaml/common.make | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/ocaml/common.make b/tools/ocaml/common.make index 17a300c807..949433faba 100644 --- a/tools/ocaml/common.make +++ b/tools/ocaml/common.make @@ -8,9 +8,7 @@ OCAMLDEP ?= ocamldep OCAMLLEX ?= ocamllex OCAMLYACC ?= ocamlyacc -CFLAGS += -fPIC -Werror -CFLAGS-$(CONFIG_Linux) += -I$(shell ocamlc -where) -CFLAGS-$(CONFIG_NetBSD) += -I/usr/pkg/lib/ocaml -fPIC +CFLAGS += -fPIC -Werror -I$(shell ocamlc -where) OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^ *\(-g\) .*/\1/p') OCAMLOPTFLAGS = $(OCAMLOPTFLAG_G) -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -cc $(CC) -w F -warn-error F -- 2.30.2